package y23.May;

public class FindOdd {
    public static void main(String[] args) {
        int[] arr = new int[]{1,2,1,2,4};
        int count = 0;
        for(int i : arr){
            count ^= arr[i];
        }
        System.out.println(count);
    }
}
